WString Class

A null-terminated UTF-16 string. This is typically used on NT-based versions of Windows.

You can pass a regular REALbasic String to it and it will be converted to UTF-16 and terminated automatically. Also, WString does an implicit type conversion to String when you assign a WString to a String variable.

WString can be used only with the Declare statement and cannot be used to declare REALbasic variables, properties, and methods.


See Also

Declare statement; Byte, CFStringRef, CString, OSType, PString, Ptr, Short, UByte, UShort, WindowPtrdata types.